package com.naiterui.ehp.bs.doctor.vo.param;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <pre>app与h5映射记录参数</pre>
 * @author gongbaoqiang
 * @date 2019/7/16 11:42
 * @since 1.0.0
 */

@ApiModel(value = "AppH5ParamVO", description = "pp与h5映射记录参数")
public class AppH5ParamVO implements Serializable {
    private static final long serialVersionUID = -3814074266117202266L;

    @ApiModelProperty(value = "app版本号", required = true, dataType = "string")
    @NotEmpty(message = "app版本号")
    private String appVersion;
    @ApiModelProperty(value = "h5版本号", required = true, dataType = "string")
    @NotEmpty(message = "h5版本号")
    private String h5Version;
    @ApiModelProperty(value = "h5压缩包地址", required = true, dataType = "string")
    @NotEmpty(message = "h5压缩包地址")
    private String h5Url;
    @ApiModelProperty(value = "设备类型：1 android, 2 ios", required = true, dataType = "int")
    @Min(value = 1, message = "设备类型参数不正确")
    @Max(value = 2, message = "设备类型参数不正确")
    private Integer deviceType;

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getH5Version() {
        return h5Version;
    }

    public void setH5Version(String h5Version) {
        this.h5Version = h5Version;
    }

    public String getH5Url() {
        return h5Url;
    }

    public void setH5Url(String h5Url) {
        this.h5Url = h5Url;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }
}
